/**
 * 仓库
 *
 * @author sxf
 * @email sxf02615@163.com
 * @date 2025/1/15
 */
package com.sxf.crm.repository;

import com.sxf.crm.entity.CustomerLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustomerLogRepository extends JpaRepository<CustomerLog, Long> {
    List<CustomerLog> findByCustomerId(Long customerId);
    
    List<CustomerLog> findByCustomerIdOrderByOperationTimeDesc(Long customerId);
    
    List<CustomerLog> findByOperatorId(Long operatorId);
} 